<!DOCTYPE html>
<html lang=zh>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
    <meta name="description" content="前期准备 本次实验使用完全分布式进行，故需要把集群全部启动！！！  启动Hadoop集群12345## 启动集群[root@master ~]# start-all.sh## 查看进程[root@master ~]# jps    调用Hadoop自带的example程序计算圆周率12## 跳转到Hadoop自带jar包的路径,注：以自己的安装路径为主[root@master ~]# cd &#x2F;op">
<meta property="og:type" content="article">
<meta property="og:title" content="使用Hadoop进行圆周率计算">
<meta property="og:url" content="https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/index.html">
<meta property="og:site_name" content="Cactus">
<meta property="og:description" content="前期准备 本次实验使用完全分布式进行，故需要把集群全部启动！！！  启动Hadoop集群12345## 启动集群[root@master ~]# start-all.sh## 查看进程[root@master ~]# jps    调用Hadoop自带的example程序计算圆周率12## 跳转到Hadoop自带jar包的路径,注：以自己的安装路径为主[root@master ~]# cd &#x2F;op">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141159323.png">
<meta property="og:image" content="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141200837.png">
<meta property="og:image" content="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141210126.png">
<meta property="og:image" content="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141221472.png">
<meta property="og:image" content="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141238142.png">
<meta property="article:published_time" content="2023-05-14T03:55:59.000Z">
<meta property="article:modified_time" content="2023-07-08T13:24:35.432Z">
<meta property="article:author" content="云雪">
<meta property="article:tag" content="大数据">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141159323.png">
    
    
      
        
          <link rel="shortcut icon" href="/images/favicon.ico">
        
      
      
        
          <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
        
      
      
        
          <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
        
      
    
    <!-- title -->
    <title>使用Hadoop进行圆周率计算</title>

    <!-- styles -->
    
<link rel="stylesheet" href="/css/style.css">


     <!-- 添加到这里！！ -->
     
<script src="/js/switch.js"></script>


    <!-- persian styles -->
    
    <!-- rss -->
    
    
	<!-- mathjax -->
	
<meta name="generator" content="Hexo 6.3.0"><link rel="alternate" href="/atom.xml" title="Cactus" type="application/atom+xml">
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#" aria-label="目录"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#" aria-label="目录"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" aria-label="顶部" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
        <!--
       --><li><a href="/">首页</a></li><!--
     --><!--
       --><li><a href="/about/">关于</a></li><!--
     --><!--
       --><li><a href="/archives/">归档</a></li><!--
     --><!--
       --><li><a href="/categories/">分类</a></li><!--
     --><!--
       --><li><a href="/search/">搜索</a></li><!--
     -->
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" aria-label="上一篇" href="/%E5%88%9D%E8%AF%86Docker/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" aria-label="下一篇" href="/%E9%83%A8%E7%BD%B2AutoGpt%E5%88%B0%E4%BA%91%E7%9B%98/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" aria-label="返回顶部" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" aria-label="分享文章" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>

        <li><a class="icon" aria-label="切换主题 " href="#"><i class="fas fa-lightbulb" aria-hidden="true" onmouseover="$('#i-switch').toggle();" onmouseout="$('#i-switch').toggle();" onclick="switchNightMode();return false";></i></a></li>

      </ul>
      <span id="i-prev" class="info" style="display:none;">上一篇</span>
      <span id="i-next" class="info" style="display:none;">下一篇</span>
      <span id="i-top" class="info" style="display:none;">返回顶部</span>
      <span id="i-share" class="info" style="display:none;">分享文章</span>
      <span id="i-switch" class="info" style="display:none;">切换主题</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.facebook.com/sharer.php?u=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://twitter.com/share?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&text=使用Hadoop进行圆周率计算"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.linkedin.com/shareArticle?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://pinterest.com/pin/create/bookmarklet/?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&is_video=false&description=使用Hadoop进行圆周率计算"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=使用Hadoop进行圆周率计算&body=Check out this article: https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://getpocket.com/save?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://reddit.com/submit?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.stumbleupon.com/submit?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://digg.com/submit?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.tumblr.com/share/link?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&name=使用Hadoop进行圆周率计算&description="><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://news.ycombinator.com/submitlink?u=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&t=使用Hadoop进行圆周率计算"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87"><span class="toc-number">1.</span> <span class="toc-text">前期准备</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%90%AF%E5%8A%A8Hadoop%E9%9B%86%E7%BE%A4"><span class="toc-number">2.</span> <span class="toc-text">启动Hadoop集群</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%B0%83%E7%94%A8Hadoop%E8%87%AA%E5%B8%A6%E7%9A%84example%E7%A8%8B%E5%BA%8F%E8%AE%A1%E7%AE%97%E5%9C%86%E5%91%A8%E7%8E%87"><span class="toc-number">3.</span> <span class="toc-text">调用Hadoop自带的example程序计算圆周率</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%80%BB%E7%BB%93"><span class="toc-number">4.</span> <span class="toc-text">总结</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BB%93%E5%B0%BE"><span class="toc-number">5.</span> <span class="toc-text">结尾</span></a></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        使用Hadoop进行圆周率计算
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">云雪</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2023-05-14T03:55:59.000Z" itemprop="datePublished">2023-05-14</time>
        
      
    </div>


      
    <div class="article-category">
        <i class="fas fa-archive"></i>
        <a class="category-link" href="/categories/%E8%AF%BE%E5%A4%96%E6%8B%93%E5%B1%95/">课外拓展</a>
    </div>


      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link-link" href="/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/" rel="tag">大数据</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h2 id="前期准备"><a href="#前期准备" class="headerlink" title="前期准备"></a>前期准备</h2><blockquote>
<p>本次实验使用完全分布式进行，故需要把集群全部启动！！！</p>
</blockquote>
<h2 id="启动Hadoop集群"><a href="#启动Hadoop集群" class="headerlink" title="启动Hadoop集群"></a>启动Hadoop集群</h2><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">## 启动集群</span><br><span class="line">[root<span class="meta">@master</span> ~]# start-all.sh</span><br><span class="line"></span><br><span class="line">## 查看进程</span><br><span class="line">[root<span class="meta">@master</span> ~]# jps</span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141159323.png" alt="image-20230514115933159"></p>
<p><img src="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141200837.png" alt="image-20230514120021741"></p>
<h2 id="调用Hadoop自带的example程序计算圆周率"><a href="#调用Hadoop自带的example程序计算圆周率" class="headerlink" title="调用Hadoop自带的example程序计算圆周率"></a>调用Hadoop自带的example程序计算圆周率</h2><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">## 跳转到Hadoop自带jar包的路径,注：以自己的安装路径为主</span><br><span class="line">[root<span class="meta">@master</span> ~]# cd /opt/hadoop/hadoop-<span class="number">3.3</span><span class="number">.5</span>/share/hadoop/mapreduce</span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141210126.png" alt="image-20230514121009013"></p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">## 调用jar包进行运算</span><br><span class="line">[root@master mapreduce]# hadoop jar hadoop-mapreduce-examples-3.3.5.jar pi 100 100000000</span><br><span class="line"><span class="comment">&lt;!-- 注：</span></span><br><span class="line"><span class="comment">后面2个数字参数的含义： </span></span><br><span class="line"><span class="comment">第1个100指的是要运行100次map任务 </span></span><br><span class="line"><span class="comment">第2个数字指的是每个map任务，要投掷多少次 </span></span><br><span class="line"><span class="comment">所以后面的数字是可以随意更改的</span></span><br><span class="line"><span class="comment">--&gt;</span></span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141221472.png" alt="image-20230514122121378"></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">## 计算结果</span><br><span class="line">Job Finished in <span class="number">174.214</span> seconds</span><br><span class="line">Estimated value of Pi is <span class="number">3.14159264920000000000</span></span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/mihaoyou/pic-go/raw/master/img/202305141238142.png" alt="image-20230514123836027"></p>
<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><ul>
<li>Hadoop不适合做计算密集型的工作，尤其是下一步计算依赖于上一步的计算结果的时候。 </li>
<li>但是Hadoop中的examples例子计算PI的方法是采用大量采样的统计学方法，还是属于数据密集型的工作。</li>
<li>用这种算法来估算PI值，如果要估算正确，首先要保证取样足够多（即投掷次数足够多）。但是如果是单机上运行程序，取太多的样，很容易 crash your computer。所以，这里用Hadoop的原因可以在集群上并行运行多个map任务，同时集群上的节点又非常多，这样就能够保证取到足够多的样了！</li>
</ul>
<h2 id="结尾"><a href="#结尾" class="headerlink" title="结尾"></a>结尾</h2><blockquote>
<ul>
<li>此文档不一定适合你的，但是可以提供一些参考，如你有好的意见或者文档有明显的错误，请跟我说一下，本人会及时修改。</li>
<li>感谢你从百忙中抽出时间看，最后祝你每天都开心，学业进步。</li>
</ul>
</blockquote>

  </div>
  <div id="copyright"><style>#easter-egg{border:0;padding:10px 0;position:relative}#easter-egg::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"本文结束 \f1b0  感谢阅读";position:absolute;
padding:0 10px;
line-height:1px;
white-space:nowrap;
left:50%;
transform:translateX(-50%)}
</style><hr id="easter-egg"><blockquote style="padding:0">
    <p>作者: <a href="https://mihaoyou.gitee.io">
        <a1>云静</a1>
    </a></p>
    <p>版权声明: 本博客所有文章除特别声明外, 均采用 <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)"><a1>CC BY-NC-ND 4.0</a1></a> 许可协议, 转载请注明出处！</p></blockquote><hr></div>
</article>


    <div class="blog-post-comments">
        <div id="utterances_thread">
            <noscript>加载评论需要在浏览器启用 JavaScript 脚本支持。</noscript>
        </div>
    </div>


        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/about/">关于</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/categories/">分类</a></li>
         
          <li><a href="/search/">搜索</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87"><span class="toc-number">1.</span> <span class="toc-text">前期准备</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%90%AF%E5%8A%A8Hadoop%E9%9B%86%E7%BE%A4"><span class="toc-number">2.</span> <span class="toc-text">启动Hadoop集群</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%B0%83%E7%94%A8Hadoop%E8%87%AA%E5%B8%A6%E7%9A%84example%E7%A8%8B%E5%BA%8F%E8%AE%A1%E7%AE%97%E5%9C%86%E5%91%A8%E7%8E%87"><span class="toc-number">3.</span> <span class="toc-text">调用Hadoop自带的example程序计算圆周率</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%80%BB%E7%BB%93"><span class="toc-number">4.</span> <span class="toc-text">总结</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BB%93%E5%B0%BE"><span class="toc-number">5.</span> <span class="toc-text">结尾</span></a></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.facebook.com/sharer.php?u=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://twitter.com/share?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&text=使用Hadoop进行圆周率计算"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.linkedin.com/shareArticle?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://pinterest.com/pin/create/bookmarklet/?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&is_video=false&description=使用Hadoop进行圆周率计算"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=使用Hadoop进行圆周率计算&body=Check out this article: https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://getpocket.com/save?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://reddit.com/submit?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.stumbleupon.com/submit?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://digg.com/submit?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&title=使用Hadoop进行圆周率计算"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.tumblr.com/share/link?url=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&name=使用Hadoop进行圆周率计算&description="><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://news.ycombinator.com/submitlink?u=https://mihaoyou.gitee.io/%E4%BD%BF%E7%94%A8Hadoop%E8%BF%9B%E8%A1%8C%E5%9C%86%E5%91%A8%E7%8E%87%E8%AE%A1%E7%AE%97/&t=使用Hadoop进行圆周率计算"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> 菜单</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> 目录</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> 分享</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> 返回顶部</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
      <div class="footer-left">
        Copyright &copy;
        
        
        2022-2023
        云雪
      </div>
      <div class="footer-right">
        <nav>
          <ul>
            <!--
          --><li><a href="/">首页</a></li><!--
        --><!--
          --><li><a href="/about/">关于</a></li><!--
        --><!--
          --><li><a href="/archives/">归档</a></li><!--
        --><!--
          --><li><a href="/categories/">分类</a></li><!--
        --><!--
          --><li><a href="/search/">搜索</a></li><!--
        -->
          </ul>
          <ul>
          
              <!-- 不蒜子统计 -->
              <span id="busuanzi_container_site_pv">
                  本站总访问量<span id="busuanzi_value_site_pv"></span>次
              </span>
              <span class="post-meta-divider">|</span>
              <span id="busuanzi_container_site_uv" style='display:none'>
                      本站访客数<span id="busuanzi_value_site_uv"></span>人
              </span>
            <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            
          </ul>
        </nav>
      </div>
      
</footer>


    </div>
    <!-- styles -->



  <link rel="preload" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" crossorigin="anonymous" onload="this.onload=null;this.rel='stylesheet'"/>


    <!-- jquery -->
 
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script> 




<!-- clipboard -->

  
    <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.7/clipboard.min.js" crossorigin="anonymous"></script> 
  
  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"复制到粘贴板！\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "复制成功！");
      e.clearSelection();
    })
  })
  </script>


<script src="/js/main.js"></script>

<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

  <script type="text/javascript">
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?d052d72734717a430b46e4d07257350b";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
        })();
        </script>

<!-- Cloudflare Analytics -->

<!-- Umami Analytics -->

<!-- Disqus Comments -->

<!-- utterances Comments -->

    <script type="text/javascript">
      var utterances_repo = 'mihaoyou/huayu';
      var utterances_issue_term = 'pathname';
      var utterances_label = 'Comment';
      var utterances_theme = 'github-dark';

      (function(){
          var script = document.createElement('script');

          script.src = 'https://utteranc.es/client.js';
          script.setAttribute('repo', utterances_repo);
          script.setAttribute('issue-term', 'pathname');
          script.setAttribute('label', utterances_label);
          script.setAttribute('theme', utterances_theme);
          script.setAttribute('crossorigin', 'anonymous');
          script.async = true;
          (document.getElementById('utterances_thread')).appendChild(script);
      }());
  </script>

</body>
</html>
